<template>
  <div class="block">
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="current_page"
      :page-size="15"
      layout="total, prev, pager, next, jumper"
      :total="totalCount"
      @prev-click="prevPage"
      @next-click="nextPage"
    >
    </el-pagination>
  </div>
</template>
<script>
export default {
  data() {
    return {

    };
  },
  props: {
    totalCount: 0,
    current_page: 0,
    per_page: 0,
  },
  methods: {
    handleSizeChange(data) {
      this.$emit('select', 1,data)
    },
    handleCurrentChange(val) {
      this.$emit('changep', val)
    },
    prevPage(page) {
      this.$emit('changep', page)
    },
    nextPage(page) {
      this.$emit('changep', page)
    },
  },
};
</script>
